{extend name="layout" /}
{block name="title"}短信设置{/block}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">短信设置</div>
                <div class="layui-card-body">
                    <div class="layui-form" wid100 lay-filter="set-system-sms">
                        <div class="layui-form-item">
                            <label class="layui-form-label">平台</label>
                            <div class="layui-input-block">
                                <input type="radio" name="type" value="1" title="阿里云短信" {eq name="value.type" value="1"}checked=""{/eq} lay-filter="type">
                                <input type="radio" name="type" value="2" title="腾讯云短信" {eq name="value.type" value="2"}checked=""{/eq} lay-filter="type">
                            </div>
                        </div>
                        <div class="layui-form-item type1">
                            <label class="layui-form-label">AccessKey ID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="aliyun[accessKeyId]"
                                       value="{$value.aliyun.accessKeyId}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type1">
                            <label class="layui-form-label">AccessKey Secret</label>
                            <div class="layui-input-inline">
                                <input type="text" name="aliyun[accessKeySecret]"
                                       value="{$value.aliyun.accessKeySecret}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type1">
                            <label class="layui-form-label">短信签名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="aliyun[signName]" value="{$value.aliyun.signName}"
                                       lay-verify="require" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type1">
                            <label class="layui-form-label">短信验证码模版CODE</label>
                            <div class="layui-input-inline">
                                <input type="text" name="aliyun[templateCode]"
                                       value="{$value.aliyun.templateCode}"
                                       lay-verify="require" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item type2">
                            <label class="layui-form-label">AppID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="qcloud[appId]" value="{$value.qcloud.appId}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type2">
                            <label class="layui-form-label">Secret Id</label>
                            <div class="layui-input-inline">
                                <input type="text" name="qcloud[secretId]" value="{$value.qcloud.secretId}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type2">
                            <label class="layui-form-label">Secret Key</label>
                            <div class="layui-input-inline">
                                <input type="text" name="qcloud[secretKey]" value="{$value.qcloud.secretKey}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type2">
                            <label class="layui-form-label">短信签名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="qcloud[signName]" value="{$value.qcloud.signName}"
                                       lay-verify="require" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type2">
                            <label class="layui-form-label">短信验证码模版ID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="qcloud[templateCode]"
                                       value="{$value.qcloud.templateCode}"
                                       lay-verify="require" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id" value="{$key}">
                                <button class="layui-btn" lay-submit lay-filter="set_system">确认保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .type2 {
        display: none
    }
</style>
{/block}
{block name="module"}'set'{/block}